import Cookies from "js-cookie";

const TokenKey = 'X-Dts-Merchant-Token'
const isBrandImprovedKey = 'isImproved'
const editBrandKey = 'editBrandKey'
const UserKey = "vipUserId";
const MobileKey = "MobileKey";
const Points = "Points";

export function getToken() {
  return Cookies.get(TokenKey)
}

export function setToken(token) {
  return Cookies.set(TokenKey, token)
}

export function removeToken() {
  return Cookies.remove(TokenKey)
}

export function getBrandIsImproved() {
  return Cookies.get(isBrandImprovedKey)
}

export function setBrandIsImproved(value) {
  return Cookies.set(isBrandImprovedKey, value)
}

export function removeBrandIsImproved() {
  return Cookies.remove(isBrandImprovedKey)
}

export function getEditBrand() {
  return Cookies.get(editBrandKey)
}

export function setEditBrand() {
  return Cookies.set(editBrandKey, true)
}

export function removeEditBrand() {
  return Cookies.remove(editBrandKey)
}

export function getUserId() {
  return Cookies.get(UserKey);
}

export function setUserId(userId) {
  return Cookies.set(UserKey, userId);
}

export function removeUserId() {
  return Cookies.remove(UserKey);
}

export function setMobile(mobile) {
  return Cookies.set(MobileKey, mobile);
}

export function getMobile() {
  return Cookies.get(MobileKey);
}

export function removeMobile() {
  return Cookies.remove(MobileKey);
}
